package cn.ibizlab.odoo.core.odoo_utm.service;

import java.io.Serializable;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.HashMap;
import java.util.Collection;
import java.math.BigInteger;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import cn.ibizlab.odoo.core.odoo_utm.domain.Utm_medium;
import cn.ibizlab.odoo.core.odoo_utm.filter.Utm_mediumSearchContext;

/**
 * 实体[Utm_medium] 服务对象接口
 */

public interface IUtm_mediumService{
     void removeBatch(Collection<? extends Serializable> idList, int batchSize) ;
     boolean remove(Integer id) ;
     boolean create(Utm_medium utm_medium) ;
     boolean update(Utm_medium utm_medium) ;
     Utm_medium get(Integer id) ;
     Utm_medium get(Utm_medium utm_medium) ;
     void createBatch(List<Utm_medium> utm_mediums, int batchSize) ;
     void updateBatch(List<Utm_medium> utm_mediums, int batchSize) ;

    /**
     * 查询集合 默认查询
     */
    Page<Utm_medium> searchDefault(Utm_mediumSearchContext context) ;

    /**
     * 根据用户查询
     */
     Page<Utm_medium> selectByOdoo_create(Integer id) ;

    /**
     * 根据用户查询
     */
     Page<Utm_medium> selectByOdoo_write(Integer id) ;

    /**
     * 转换ClientModel为Domain
     */
    public Utm_medium convert2Domain(cn.ibizlab.odoo.core.client.model.Iutm_medium model ,Utm_medium domain);

    /**
     * 转换Domain为ClientModel
     */
    public cn.ibizlab.odoo.core.client.model.Iutm_medium convert2Model(Utm_medium domain , cn.ibizlab.odoo.core.client.model.Iutm_medium model);

}
